package data_gorm

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mysql"
)

var Db *gorm.DB
var err  error
type Yml struct {
	Id int
	Realname string
	Username string
	LastLoginDate string `gorm:"column:lastLoginDate"`
}
type Yml2 struct {
	Id int
	Username string
	Coursename string
	Realname string
	Order1 string
	EnterCount string `gorm:"column:enterCount"`
	InLessonTime string`gorm:"column:inLessonTime"`
	Js int
}
func (Yml) TableName() string {
	return "yml"
}
func (Yml2) TableName() string {
	return "yml2"
}
func init() {
	Db,_ =gorm.Open("mysql","root:123456@tcp(10.30.59.136:3306)/wzk1?charset=utf8")

}